<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let a = 'asd'
    let obj = {
      [a]: true,
      ['a' + 'bc']: 123
    }
    console.log(obj[a]);
    console.log(obj['asd']);
    console.log(obj['abc']);
    console.log(obj);
    class Point {
      constructor(x, y) {
        Object.assign(this, { x, y })
      }
    }
    let p = new Point(1, 2)
    console.log(p.x);
    console.log(p.y);
    console.log(p);
    new Promise((resolve, reject) => {
      resolve(1)
      console.log('2')
    }).then((r) => {
      console.log('1');
    })
  </script>
</body>

</html>